import request from '@/utils/request'
// api地址
const api = {
	getMyCarSource: 'api/UserCarWantBuy/getMyCarSource',
	carSell:'api/UserCarWantBuy/sell',
	carCancelSell:'api/UserCarWantBuy/cancelSell',
	carDelete:'api/UserCarWantBuy/delete',
	carReSubmit:'api/UserCarWantBuy/reSubmit',
	carUpdate:'api/UserCarWantBuy/update',
	getMyCarSourceCount:'api/UserCarWantBuy/getMyCarSourceCount',
	closeInquiry:'/api/userCar/closeInquiry'
}

// 我的车源
export function getMyCarSource(data) {
	return request.get(api.getMyCarSource, data,{load:false})
}
// 上架车源
export function carSell(data) {
	return request.post(api.carSell, data)
}
//取消售卖
export function carCancelSell(data) {
	return request.post(api.carCancelSell, data)
}
//取消发布
export function carDelete(data) {
	return request.post(api.carDelete, data)
}
//重新提交
export function carReSubmit(data) {
	return request.post(api.carReSubmit, data)
}
//修改资料
export function carUpdate(data) {
	return request.post(api.carUpdate, data)
}
//车源数量
export function getMyCarSourceCount(data) {
	return request.get(api.getMyCarSourceCount, data)
}
export function closeInquiry(data) {
	return request.post(api.closeInquiry, data)
}


